Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlink tile #4049

Closed
wants to merge 5 commits into from
Closed

Netlink tile #4049

wants to merge 5 commits into from

Conversation

ripatel-fd
Copy link
Contributor

@ripatel-fd ripatel-fd commented Jan 29, 2025

  • net 2.0: new route table
  • net 2.0: netlink route importer
  • net 2.0: neighbor table
  • net 2.0: interface table
  • net 2.0: netlink tile, netconf command
  • Remove defunct multihome_ip_addrs config param

Relates to #692
Closes #3619

@ripatel-fd ripatel-fd disabled auto-merge January 29, 2025 23:07
# See `ip route show table all`
max_routes = 128

# The maximum number of Ethernet neighbors (aka ARP table entries).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would simplify this summary a little bit, for operators that might not know what ARP is, but have decent networking knowledge, with a bit more detail below.

@ripatel-fd ripatel-fd marked this pull request as draft January 30, 2025 17:18
@ripatel-fd ripatel-fd force-pushed the ripatel/netlink-tile branch 2 times, most recently from c7e6369 to 73f65cd Compare January 30, 2025 18:42
@ripatel-fd
Copy link
Contributor Author

@mmcgee-jump Thanks for the review. I addressed all the code concerns. I'll need some help with documentation for the config. I suggest we update the default config file later?

@ripatel-fd ripatel-fd marked this pull request as ready for review January 30, 2025 18:45
@ripatel-fd ripatel-fd marked this pull request as draft January 31, 2025 18:48
@ripatel-fd ripatel-fd force-pushed the ripatel/netlink-tile branch 3 times, most recently from ef2189f to 4bfee16 Compare January 31, 2025 19:03
@ripatel-fd ripatel-fd force-pushed the ripatel/netlink-tile branch 4 times, most recently from f899f8b to f34ce62 Compare February 4, 2025 14:30

/* Step 4: Update metadata */

fib4->generation++;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be:
Step 1: Indicate we are mid write
Step 2: Make default route negative
Step 3: Disable all other routes
Step 4: Update metadata (to indicate write complete)

If not, you may as well do fib4->generation += 2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nbridge-jump The reader doesn't care whether generation is odd or even. It just checks whether the generation is the same before and after. If it isn't, it returns a blackhole route. "Make default route negative" and "disable all other routes" have the same effect - returning a blackhole route.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then make it fib4->generation += 2

@ripatel-fd ripatel-fd marked this pull request as ready for review February 5, 2025 16:20
@ripatel-fd ripatel-fd enabled auto-merge February 5, 2025 22:59
@ripatel-fd
Copy link
Contributor Author

Moving to #4141

@ripatel-fd ripatel-fd closed this Feb 8, 2025
auto-merge was automatically disabled February 8, 2025 11:15

Pull request was closed

@ripatel-fd ripatel-fd deleted the ripatel/netlink-tile branch February 20, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Net tile v2: ARP/routing isolation
5 participants